package com.cx.mapper;

import com.cx.pojo.Posttest;
import com.cx.pojo.PosttestExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PosttestMapper {
    int countByExample(PosttestExample example);

    int deleteByExample(PosttestExample example);

    int deleteByPrimaryKey(Integer postId);

    int insert(Posttest record);

    int insertSelective(Posttest record);

    List<Posttest> selectByExample(PosttestExample example);

    Posttest selectByPrimaryKey(Integer postId);

    int updateByExampleSelective(@Param("record") Posttest record, @Param("example") PosttestExample example);

    int updateByExample(@Param("record") Posttest record, @Param("example") PosttestExample example);

    int updateByPrimaryKeySelective(Posttest record);

    int updateByPrimaryKey(Posttest record);

    List<Posttest> selectByPostTestName(String postName);

}